// 全局变量定义
:root {
  // 科技配色方案
  --tech-bg-primary: #0a0a0f;
  --tech-bg-secondary: #151520;
  --tech-bg-card: rgba(21, 21, 32, 0.9);
  
  --tech-accent-neon: #00d4ff;
  --tech-accent-green: #39ff14;
  --tech-accent-purple: #8b5cf6;
  --tech-accent-orange: #ff6b35;
  
  --tech-text-primary: #ffffff;
  --tech-text-secondary: #a0a0a0;
  --tech-text-muted: #666666;
  
  // 渐变定义
  --tech-gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
  --tech-gradient-accent: linear-gradient(135deg, #00d4ff, #39ff14);
  --tech-gradient-card: linear-gradient(145deg, rgba(21, 21, 32, 0.9), rgba(26, 26, 37, 0.9));
  
  // 阴影系统
  --tech-shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --tech-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --tech-shadow-hover: 0 12px 48px rgba(0, 212, 255, 0.2);
  
  // 动画时间
  --tech-transition-fast: 0.2s;
  --tech-transition-normal: 0.3s;
  --tech-transition-slow: 0.5s;
}

// 全局重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--tech-bg-primary);
  color: var(--tech-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tech-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tech-accent-neon), var(--tech-accent-green));
  border-radius: 4px;
  
  &:hover {
    background: linear-gradient(180deg, var(--tech-accent-green), var(--tech-accent-neon));
  }
}

// 通用动画类
.fade-enter-active,
.fade-leave-active {
  transition: opacity var(--tech-transition-normal) ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-enter-active,
.slide-leave-active {
  transition: transform var(--tech-transition-normal) ease;
}

.slide-enter-from {
  transform: translateX(-100%);
}

.slide-leave-to {
  transform: translateX(100%);
}

// 发光效果类
.glow-text {
  text-shadow: 0 0 10px currentColor;
}

.glow-border {
  border: 1px solid var(--tech-accent-neon);
  box-shadow: var(--tech-shadow-glow);
}

.glow-hover {
  transition: all var(--tech-transition-normal) ease;
  
  &:hover {
    box-shadow: var(--tech-shadow-hover);
    transform: translateY(-2px);
  }
}

// 渐变文字
.gradient-text {
  background: var(--tech-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

// 毛玻璃效果
.glass-effect {
  background: var(--tech-gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

// 脉冲动画
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

// 打字机效果
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--tech-accent-neon);
  white-space: nowrap;
  animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--tech-accent-neon);
  }
}

// 粒子背景容器
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

// 响应式工具类
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}